package com.ruoyi.hhsw.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 进度节点对象 hhsw_plan_node
 * 
 * @author ruoyi
 * @date 2025-02-17
 */
public class PlanNode extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 工作计划ID */
    @Excel(name = "工作计划ID")
    private Long planId;

    /** 节点名称 */
    @Excel(name = "节点名称")
    private String nodeName;

    /** 节点描述 */
    @Excel(name = "节点描述")
    private String description;

    /** 节点截止时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "节点截止时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deadline;

    /** 节点进度 */
    @Excel(name = "节点进度")
    private Long nodeProgress;

    /** 是否完成 */
    @Excel(name = "是否完成")
    private Integer isCompleted;

    /** 文件附件 */
    @Excel(name = "文件附件")
    private String fileAttachments;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date nodeCreateTime;

    private String nodeCreateBy;

    private String nodeFileAttachments;


    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPlanId(Long planId) 
    {
        this.planId = planId;
    }

    public Long getPlanId() 
    {
        return planId;
    }
    public void setNodeName(String nodeName) 
    {
        this.nodeName = nodeName;
    }

    public String getNodeName() 
    {
        return nodeName;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setDeadline(Date deadline) 
    {
        this.deadline = deadline;
    }

    public Date getDeadline() 
    {
        return deadline;
    }
    public void setNodeProgress(Long nodeProgress) 
    {
        this.nodeProgress = nodeProgress;
    }

    public Long getNodeProgress() 
    {
        return nodeProgress;
    }
    public void setIsCompleted(Integer isCompleted) 
    {
        this.isCompleted = isCompleted;
    }

    public Integer getIsCompleted() 
    {
        return isCompleted;
    }

    public void setFileAttachments(String fileAttachments) 
    {
        this.fileAttachments = fileAttachments;
    }

    public String getFileAttachments() 
    {
        return fileAttachments;
    }

    public void setNodeCreateTime(Date nodeCreateTime) 
    {
        this.nodeCreateTime = nodeCreateTime;
    }

    public Date getNodeCreateTime() 
    {
        return nodeCreateTime;
    }

    public void setNodeCreateBy(String nodeCreateBy) 
    {
        this.nodeCreateBy = nodeCreateBy;
    }

    public String getNodeCreateBy() 
    {
        return nodeCreateBy;
    }

    public void setNodeFileAttachments(String nodeFileAttachments) 
    {
        this.nodeFileAttachments = nodeFileAttachments;
    }

    public String getNodeFileAttachments() 
    {
        return nodeFileAttachments;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("planId", getPlanId())
            .append("nodeName", getNodeName())
            .append("description", getDescription())
            .append("deadline", getDeadline())
            .append("nodeProgress", getNodeProgress())
            .append("isCompleted", getIsCompleted())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
